# Maintainer: Yong-hyu, Ban <yhban@quendi.moe>
# Maintainer: Eon Jeong <administrator@korea.ac.kr>
pkgname=dosfstools
pkgver=4.1
pkgrel=1
pkgdesc="DOS filesystem utilities"
arch=('i686' 'x86_64')
depends=('libiconv' 'libiconv-devel')
source=(https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz)
url="https://github.com/dosfstools/dosfstools"
license=('GPL2')
sha256sums=('e6b2aca70ccc3fe3687365009dd94a2e18e82b688ed4e260e04b7412471cc173')

prepare() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --libexecdir=/usr/lib --sbindir=/usr/bin --mandir=/usr/share/man --docdir=/usr/share/doc/dosfstools --without-udev --enable-compat-symlinks
}

build() {
   cd $srcdir/$pkgname-$pkgver
   make LDADD="-liconv"
}

package () {
   cd $srcdir/$pkgname-$pkgver
   make DESTDIR=$pkgdir install
}
